package com.wealth.merchant.enums;
/**
 * 市场枚举
 * @author chan
 */
public enum MarketEnum {
	
	LIFE(1L,"惠生活"),LOCAL(2L,"本地购"),BRAND(3L,"品牌购"),SCORECITY(4L,"积分城");
	
	private Long value;
	private String comment;
	
	private MarketEnum(Long value,String comment){
		this.value = value;
		this.comment =comment;
	}

	public Long getValue() {
		return value;
	}

	public String getComment(){
		return comment;
	}
	public static MarketEnum get(Long value){
		for (MarketEnum o:MarketEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
}
